package br.com.cast.paises;


import org.apache.wicket.markup.html.form.Form;

import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.CompoundPropertyModel;

import br.com.cast.modelo.Pais;

public class CadastroPais extends Panel {

	private Form<Pais> form;
	
	public CadastroPais(String id) {
		super(id);
		
		form = new FormPais("formulario");
		form.setDefaultModel(
				new CompoundPropertyModel<Pais>(new Pais()));
		
		add(form);
	}
	
	public void atualizaModel(Object pais) {
		form.setDefaultModelObject(pais);
	}
}
